﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AVIS.OutBound.Contents
{
    /// <summary>
    /// CMS内容的基类
    /// </summary>
    public class BaseCMS
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 类目ID
        /// </summary>
        public int CatalogId { get; set; }

        protected void MapFromContent(ContentCacheItem content)
        {
            this.Id = content.Id;
            this.CatalogId = content.CatalogId;
        }
    }
}
